const modules = import.meta.glob('./modules/*.js', { eager: true })
const translations = {}
for (const path in modules) {
  const moduleName = path.split('/').pop().replace('.js', '')
  translations[moduleName] = modules[path].default
}

export default translations
